import React from 'react';
import ReactDOM from 'react-dom';
import './index.less';
import Admin from'./admin'
import Router from'./router'
import registerServiceWorker from './registerServiceWorker';
import { createStore } from 'redux'
import { Provider } from 'react-redux'//提供数据源
import configureStore from './redux/store/index'
import { LocaleProvider } from 'antd';
import zh_CN from 'antd/lib/locale-provider/zh_CN';
import 'moment/locale/zh-cn';

const store =configureStore();
ReactDOM.render(
    <LocaleProvider locale={zh_CN}>
        <Provider store={store}>
            <Router/>
        </Provider>
    </LocaleProvider>
   , document.getElementById('root'));
registerServiceWorker();
